import request from "@/libs/request";

export function grammarItem(data) {
  return request({
    url: "/grammar/api/grammarItem",
    method: "post",
    data,
  });
}

export function getConceptById(data) {
  return request({
    url: "/grammar/api/getConceptById",
    method: "post",
    data,
  });
}

export function createTestQuestions(data) {
  return request({
    url: "/grammar/api/createTestQuestions",
    method: "post",
    data,
  });
}

export function getPaper(data) {
  return request({
    url: "/grammar/api/getPaper",
    method: "post",
    data,
  });
}

export function grammarCommit(data) {
  return request({
    url: "/grammar/api/commit",
    method: "post",
    data,
  });
}

export function getWrongReport(data) {
  return request({
    url: "/grammar/api/getWrongReport",
    method: "post",
    data,
  });
}

export function getWrongQuestions(data) {
  return request({
    url: "/grammar/api/getWrongQuestions",
    method: "post",
    data,
  });
}

export function removeWrongQuestions(data) {
  return request({
    url: "/grammar/api/removeWrong",
    method: "post",
    data,
  });
}

export function getQuestions(data) {
  return request({
    url: "/grammar/api/getQuestions",
    method: "post",
    data,
  });
}
